package com.luxsoft.siipap.em.replica.online;

import com.luxsoft.siipap.em.replica.model.Registro;

/**
 * Interface usada para mapear instancias de tipo {@link Registro}} 
 *  
 * Implementations of this interface perform the actual work of mapping 
 * each registro to a result object,but don't need to worry about exception handling.
 * {@link java.sql.SQLException SQLExceptions} will be caught and handled
 * by the calling JdbcTemplate. 
 *
 * @author Ruben Cancino Ramos
 *
 */
public interface RegistroMapper<T> {
	
	/** 
	 * Transforma un registro en un Bean
	 * 
	 */
	T mapRegistro(Registro r) throws RuntimeException; 

}
